<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
require_once "../data.php";
//插入数据

  $sql="insert into student(name,sex) values('$_POST[name]',$_POST[sex])";
  
  $sql=convert2gbk($sql);
  
  if (!mssql_query($sql,$sqlcon))
  {
	  die('Could not connect: ' . mssql_error());
  }
echo "1 record added";

header("Location: read.php"); 
?> 


